package cn.iocoder.yudao.module.member.bonus.service.admin;

import cn.iocoder.yudao.framework.business.basic.pojo.vo.UserSimpleVO;
import cn.iocoder.yudao.framework.business.order.service.AdminOrderBaseService;
import cn.iocoder.yudao.module.api.member.bonus.vo.BonusOrderVO;
import cn.iocoder.yudao.module.api.member.user.MemberUserApi;
import cn.iocoder.yudao.module.member.bonus.dao.BonusOrderMapper;
import cn.iocoder.yudao.module.member.bonus.pojo.dto.BonusOrderQueryDTO;
import cn.iocoder.yudao.module.member.bonus.pojo.po.BonusOrder;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.Map;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 服务
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/05/09
 */
@Service
public class BonusOrderService extends AdminOrderBaseService<BonusOrder, BonusOrderVO, BonusOrderQueryDTO> {
    @Resource
    private BonusOrderMapper bonusOrderMapper;

    @Resource
    private MemberUserApi memberUserApi;

    @Override
    public BonusOrderMapper getInjectedMapper() {
        return bonusOrderMapper;
    }

    @Nonnull
    @Override
    protected Map<Long, UserSimpleVO> getUserSimpleMap(Collection<Long> userIds) {
        return memberUserApi.getUserSimpleMap(userIds);
    }

}
